<?php

ini_set('display_errors', 1);
error_reporting(-1);
require_once '/data/wwwroot/g_vendor/autoload.php';
ini_set('memory_limit', '512M');


echo (ini_get('memory_limit')) , PHP_EOL;
$obj_id = $argv[1] ?? '';
$brand_id = $argv[2] ?? '0';
$debug = $argv[3] ?? false;

if ($obj_id) {

    if ($debug) \Biz\service\wiki\WikiContentSync::debug();

    $obj_ids = explode(",", $obj_id);
    foreach ($obj_ids as $obj_id) {
        \Biz\service\wiki\WikiContentSync::autoClaim($obj_id, $brand_id, false);
    }

}




